import request from '@/utils/request'
import type { Hotsale } from './interface'
enum Api {
  hotsaleListApi = '/xhr/item/saleRankItems.json',
}
export const reqHotsaleList = (categoryId) => {
  return request.get<Hotsale[], any>(Api.hotsaleListApi, {
    params: {
      categoryId, //通过首页点击排行榜跳转路由到排行榜页面的时候路由query参数   categoryId=1010000
    },
  })
}
